import apis from "../services/channelNumberApi";

export default {
  namespace: "channelNumber",
  state: {},
  effects: {
    *channelList({ payload }, { call }) {
      return yield call(apis.channelList, payload);
    },
    *modChannel({ payload }, { call }) {
      return yield call(apis.modChannel, payload);
    },
    *delChannel({ payload }, { call }) {
      return yield call(apis.delChannel, payload);
    },
    *detailChannel({ payload }, { call }) {
      return yield call(apis.detailChannel, payload);
    },
    *channelHidden({ payload }, { call }) {
      return yield call(apis.channelHidden, payload);
    },
    *update({ payload }, { call }) {
      return yield call(apis.update, payload);
    },
    *inExcel({ payload }, { call }) {
      return yield call(apis.inExcel, payload);
    }
  },
  reducers: {}
};
